import request from '@/utils/request'

export function getMemberList(query) {
    return request({
        url: '/members',
        method: 'get',
        params: query
    })
}

export function getPartnerList(query) {
    return request({
        url: '/members/partner',
        method: 'get',
        params: query
    })
}

export function getBalance(query) {
    return request({
        url: '/members/getBalance',
        method: 'get',
        params: query
    })
}

export function excelMembers(query) {
    return request({
        url: '/members/excelMembers',
        method: 'get',
        params: query
    })
}

export function getUserInfo(query) {
    return request({
        url: `/members/getUserInfo`,
        method: 'get',
        params: query
    })
}

export function myHighLine(query) {
    return request({
        url: `/members/myHighLine`,
        method: 'get',
        params: query
    })
}

export function myCustomers(query) {
    return request({
        url: `/members/myCustomers`,
        method: 'get',
        params: query
    })
}

export function giveIntegre(query) {
    return request({
        url: `/members/giveIntegre`,
        method: 'get',
        params: query
    })
}

export function setVip(query) {
    return request({
        url: `/members/setVip`,
        method: 'get',
        params: query
    })
}

export function addVipNum(query) {
    return request({
        url: `/members/addVipNum`,
        method: 'get',
        params: query
    })
}

export function getVipBene() {
    return request({
        url: `/members/getVipBene`,
        method: 'get'
    })
}

export function vipBeneSave(query) {
    return request({
        url: `/members/vipBeneSave`,
        method: 'post',
        data: query
    })
}

export function getUsers(query) {
    return request({
        url: `/members/getUsers`,
        method: 'get',
        params: query
    })
}

export function commandSave(query) {
    return request({
        url: `/members/commandSave`,
        method: 'get',
        params: query
    })
}

export function confirmPartner(query) {
    return request({
        url: `/members/confirmPartner`,
        method: 'get',
        params: query
    })
}

export function cancelAgent(query) {
    return request({
        url: `/members/cancelAgent`,
        method: 'get',
        params: query
    })
}

export function applyList(query) {
    return request({
        url: `/members/applyList`,
        method: 'get',
        params: query
    })
}

export function agentApply(query) {
    return request({
        url: `/members/agentApply`,
        method: 'get',
        params: query
    })
}

export function getAgentDesc() {
    return request({
        url: `/members/getAgentDesc`,
        method: 'get'
    })
}

export function getPoints() {
    return request({
        url: `/members/getPoints`,
        method: 'get'
    })
}

export function PointSave(query) {
    return request({
        url: `/members/PointSave`,
        method: 'post',
        data: query
    })
}

export function AgentDescSave(query) {
    return request({
        url: `/members/AgentDescSave`,
        method: 'post',
        data: query
    })
}

export function getPointList(query) {
    return request({
        url: '/members/getPointList',
        method: 'get',
        params: query
    })
}

export function getUsersPointList(query) {
    return request({
        url: '/members/getUsersPointList',
        method: 'get',
        params: query
    })
}

export function getMemberSearch(query) {
    return request({
        url: '/members/search',
        method: 'get',
        params: {
            q: query
        }
    })
}

export function initMemberList() {
    return request({
        url: '/members/initMemberList',
        method: 'get'
    })
}

export function GoodsUnificationList(query) {
    return request({
        url: '/members/GoodsUnificationList',
        method: 'get',
        params: query
    })
}
export function GoodsUnification(query) {
    return request({
        url: `/members/GoodsUnification`,
        method: 'post',
        data: query
    })
}

export function proportion() {
    return request({
        url: '/members/proportion',
        method: 'get'
    })
}
export function unification(query) {
    return request({
        url: `/members/unification`,
        method: 'post',
        data: query
    })
}

export function special(query) {
    return request({
        url: '/members/special',
        method: 'get',
        params: query
    })
}

//兑换码
export function activateList(query) {
    return request({
        url: '/members/activateList',
        method: 'get',
        params: query
    })
}

export function activateLists(query) {
    return request({
        url: '/members/activateLists',
        method: 'get',
        params: query
    })
}
export function activate(query) {
    return request({
        url: `/members/activate`,
        method: 'post',
        data: query
    })
}

export function enableComment(query) {
    return request({
        url: `/members/enableComment`,
        method: 'post',
        data: query
    })
}

export function activateStatus(query) {
    return request({
        url: '/members/activateStatus',
        method: 'get',
        params: query
    })
}

export function getPay(query) {
    return request({
        url: '/members/getPay',
        method: 'get',
        params: query
    })
}

// 下载币充值设置
export function DownloadGet(query) {
    return request({
        url: '/members/DownloadGet',
        method: 'get',
        params: query
    })
}

export function DownloadSave(query) {
    return request({
        url: '/members/DownloadSave',
        method: 'get',
        params: query
    })
}

export function DownloadDelete(query) {
    return request({
        url: '/members/DownloadDelete',
        method: 'get',
        params: query
    })
}

export function DownloadAdd(query) {
    return request({
        url: '/members/DownloadAdd',
        method: 'get',
        params: query
    })
}

export function PointsGet(query) {
    return request({
        url: '/members/PointsGet',
        method: 'get',
        params: query
    })
}

export function Live(query) {
    return request({
        url: '/Live',
        method: 'get',
        params: query
    })
}

export function giftSet(query) {
    return request({
        url: `/Live/giftSet`,
        method: 'post',
        data: query
    })
}

export function giftDel(query) {
    return request({
        url: '/Live/giftDel',
        method: 'get',
        params: query
    })
}

export function createLive(query) {
    return request({
        url: `/Live/createLive`,
        method: 'post',
        data: query
    })
}

export function LiveList(query) {
    return request({
        url: '/Live/LiveList',
        method: 'get',
        params: query
    })
}

export function voucherGe(query) {
    return request({
        url: '/members/voucherGet',
        method: 'get',
        params: query
    })
}

export function voucherAdd(query) {
    return request({
        url: `/members/voucherAdd`,
        method: 'post',
        data: query
    })
}


export function activateExplain(query) {
    return request({
        url: '/members/activateExplain',
        method: 'get',
        params: query
    })
}

export function GetClassify(query) {
    return request({
        url: '/members/GetClassify',
        method: 'get',
        params: query
    })
}

export function Classify(query) {
    return request({
        url: '/members/Classify ',
        method: 'post',
        data: query
    })
}


export function SetClassify(query) {
    return request({
        url: '/members/SetClassify ',
        method: 'post',
        data: query
    })
}


export function first(query) {
    return request({
        url: '/members/first',
        method: 'get',
        params: query
    })
}

export function message(query) {
    return request({
        url: '/members/message?userId=' + query,
        method: 'get'
    })
}

export function staff(query) {
    return request({
        url: '/members/staff?userId=' + query,
        method: 'get'
    })
}

export function saveCommodity(query) {
    return request({
        url: `/Live/saveCommodity`,
        method: 'post',
        data: query
    })
}

export function cooperation(query) {
    return request({
        url: '/Live/cooperation',
        method: 'get',
        params: query
    })
}

export function subscribe(query) {
    return request({
        url: '/Live/subscribe',
        method: 'get',
        params: query
    })
}

export function liveOrder(query) {
    return request({
        url: '/Live/liveOrder',
        method: 'get',
        params: query
    })
}
export function UpdateStatus(query) {
    return request({
        url: '/Live/UpdateStatus',
        method: 'get',
        params: query
    })
}
export function startLive(query) {
    return request({
        url: '/Live/startLive',
        method: 'get',
        params: query
    })
}

export function LivePreheat(query) {
    return request({
        url: `/Live/LivePreheat`,
        method: 'post',
        data: query
    })
}